<?php
declare (strict_types=1);

namespace app\service;

use EasyWeChat\Factory;
use think\facade\Config;
use think\Log;

class MiniProgramService extends \think\Service
{
    /**
     * 注册服务
     *
     * @return mixed
     */
    public function register()
    {
        $mini_config = Config::get('miniProgram');
        $miniProgram = Factory::miniProgram($mini_config);
        $this->app->bind('WechatMiniProgram', $miniProgram);
    }

    /**
     * 执行服务
     *
     * @return mixed
     */
    public function boot()
    {
        //
    }
}
